*** Do File for Paper ***

** 2016 ANES **
clear
use "C:\Users\dmac9\Dropbox\R&R Political Trust and Free Trade PB\Clean ANES 2016.dta" 

*Table 2*
reg Scale9_Trade01 Trust_Govt01 Female White Married Own_Home Union_Household College Online_Mode Age Income ///
Personal_Finances_Past_Year01 Econ_Past_Year01 Pid7_01 Ideo7_01 /// 
Social_Trust01 Auth_Index01 Moral_Traditionalism01 FT_Business01 i.State , cluster(State)
*outreg2 using tab.tex, dec(3) replace
outreg2 using tab.tex, dec(3) asterisk(se) sideway replace

reg Scale9_Trade01 Trust_Govt01 Female White Married Own_Home Union_Household College Online_Mode Age Income ///
Personal_Finances_Past_Year01 Econ_Past_Year01 Pid7_01 Ideo7_01 /// 
Social_Trust01 Auth_Index01 Moral_Traditionalism01 FT_Business01 FT_Trump01 i.State , cluster(State)
outreg2 using tab.tex, dec(3) asterisk(se) sideway append

** 2004 and 2008 NAES pooled **
clear
use "C:\Users\dmac9\Dropbox\R&R Political Trust and Free Trade PB\Clean Pooled Annenberg 2004 and 2008.dta"

*Table 3*
reg more_free_trade trust_gov_right01 female white married union_household college age income years_address urban_area ///
pid7_01 ideo5_01 bush_favorability01 i.state i.year, cluster(state)
outreg2 using tab.tex, dec(3) replace

** Cumulative ANES, 1988-2012 **
clear
use "C:\Users\dmac9\Dropbox\R&R Political Trust and Free Trade PB\Clean Cumulative ANES 1948 to 2020.dta"

*Table 4*
reg Limit_Imports Trust_Gov_Index01 Female White Married Homeowner Union_Household College Age Family_Income ///
Retro_Personal_Econ01 Retro_Nat_Econ01 Pid7_01 Ideo7_01 Index_Trad_01 FT_Business01 ///
i.State i.Year if Year<=2012, cluster(State)
outreg2 using tab.tex, dec(3) replace

** 2016 to 2020 ANES, panel **
clear
use "C:\Users\dmac9\Dropbox\R&R Political Trust and Free Trade PB\Clean Panel Sample ANES 2016 to 2020.dta"

*Table 5*
reg Pro_Trade20 Pro_Trade16 Trust_Gov16_01, r
outreg2 using tab.tex, dec(3) replace

reg Trust_Gov20_01 Pro_Trade16 Trust_Gov16_01, r
outreg2 using tab.tex, dec(3) append

** Survey Experiment **
clear
use "C:\Users\dmac9\Dropbox\R&R Political Trust and Free Trade PB\Clean MTurk Experimental Data.dta"

*Table 6*
reg Encourage_Trade Treated, r
outreg2 using tab.tex, dec(3) replace

reg Encourage_Trade Received_Treatment_vs_Control , r
outreg2 using tab.tex, dec(3) append



